/* PERFIL: ajustes del enlace activo en el menú */
.Lista_NAV li a.activo{
    color: var(--color-dorado);
    text-shadow:
        0 0 8px rgba(255, 215, 0, 0.8),
        0 0 15px rgba(255, 215, 0, 0.6);
}

.perfil{
    padding: 60px 10% 100px;
    max-width: 1200px;
    margin: 0 auto;
}

/* PORTADA DEL PERFIL */
.perfil-portada{
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--borde-dorado);
    border-radius: var(--radio-lg);
    padding: 40px 35px;
    margin-bottom: var(--space-5);
    box-shadow: var(--sombra-md);
}

.perfil-portada-contenido{
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.perfil-avatar{
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--color-dorado), rgba(255, 215, 0, 0.4));
    color: var(--color-negro);
    font-family: var(--fuente-display);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-brillo-md);
}

.perfil-datos h1{
    font-family: var(--fuente-display);
    font-size: 30px;
    letter-spacing: 0.4px;
    color: var(--color-dorado);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.perfil-correo{
    color: var(--texto-terciario);
    font-size: 14px;
    margin-top: 6px;
}

.perfil-etiquetas{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: var(--space-2);
}

.etiqueta{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: var(--radio-pill);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    transition: border-color var(--transicion-base), background-color var(--transicion-base);
}

.etiqueta:hover{
    border-color: var(--color-dorado);
    background-color: rgba(255, 215, 0, 0.08);
}

.etiqueta svg{
    width: 16px;
    height: 16px;
    color: var(--color-dorado);
}

/* SECCIONES GENERALES */
.perfil-seccion{
    margin-bottom: var(--space-5);
}

.perfil-seccion h2,
.tarjeta-info h2{
    font-family: var(--fuente-display);
    color: var(--color-dorado);
    font-size: 19px;
    letter-spacing: 0.3px;
    margin-bottom: var(--space-2);
}

/* GRID DE ESTADÍSTICAS */
.estadisticas-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.estadistica-tarjeta{
    background: var(--superficie-1);
    border: 1px solid var(--borde-dorado);
    border-radius: 14px;
    padding: var(--space-2);
    text-align: center;
    transition: transform var(--transicion-base), border-color var(--transicion-base), box-shadow var(--transicion-base), background-color var(--transicion-base);
}

.estadistica-tarjeta:hover{
    transform: translateY(-4px);
    border-color: var(--color-dorado);
    background: var(--superficie-2);
    box-shadow: var(--sombra-brillo-sm);
}

.estadistica-valor{
    font-family: var(--fuente-display);
    font-size: 26px;
    color: var(--color-dorado);
}

.estadistica-etiqueta{
    margin-top: 6px;
    font-size: 13px;
    color: var(--texto-secundario);
}

/* DOS COLUMNAS: CLUB/RANKING + TORNEOS */
.perfil-columnas{
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    align-items: start;
}

.perfil-columna-lateral{
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tarjeta-info{
    background: var(--superficie-1);
    border: 1px solid var(--borde-dorado);
    border-radius: var(--radio-md);
    padding: 25px;
    transition: border-color var(--transicion-base), box-shadow var(--transicion-base);
}

.tarjeta-info:hover{
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: var(--sombra-sm);
}

/* CLUB */
.club-contenido{
    display: flex;
    align-items: center;
    gap: 15px;
}

.club-logo{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: var(--color-dorado);
    font-family: var(--fuente-display);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.club-nombre{
    color: var(--texto-primario);
    font-weight: bold;
}

.club-detalle{
    color: var(--texto-terciario);
    font-size: 13px;
    margin-top: 4px;
}

/* RANKING */
.ranking-posicion{
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ranking-numero{
    font-family: var(--fuente-display);
    font-size: 36px;
    color: var(--color-dorado);
}

.ranking-categoria{
    color: var(--texto-secundario);
    font-size: 13px;
}

.ranking-puntos{
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.ranking-barra{
    margin-top: 14px;
    height: 8px;
    border-radius: var(--radio-pill);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ranking-barra-relleno{
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.6), var(--color-dorado));
    border-radius: var(--radio-pill);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* TORNEOS */
.grupo-torneos + .grupo-torneos{
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
}

.torneos-encabezado h3{
    font-family: var(--fuente-display);
    color: var(--texto-primario);
    font-size: 14px;
    margin-bottom: 0;
}

.torneos-encabezado{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: var(--space-2);
}

.torneos-encabezado h2{
    margin-bottom: 0;
}

.torneos-tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab{
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--texto-secundario);
    font-family: var(--fuente-display);
    font-size: 12px;
    padding: 8px 18px;
    border-radius: var(--radio-pill);
    transition: background-color var(--transicion-base), color var(--transicion-base), border-color var(--transicion-base);
}

.tab.activo,
.tab:hover,
.tab:focus-visible{
    background-color: var(--color-dorado-fuerte);
    border-color: var(--color-dorado);
    color: var(--color-negro);
    transform: none;
}

.panel-torneos{
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.5) rgba(255, 255, 255, 0.05);
}

.panel-torneos::-webkit-scrollbar{
    width: 8px;
}

.panel-torneos::-webkit-scrollbar-track{
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radio-pill);
}

.panel-torneos::-webkit-scrollbar-thumb{
    background: rgba(255, 215, 0, 0.5);
    border-radius: var(--radio-pill);
}

.panel-torneos::-webkit-scrollbar-thumb:hover{
    background: var(--color-dorado);
}

.lista-torneos{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.torneo-item{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--superficie-1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    transition: border-color var(--transicion-base), box-shadow var(--transicion-base), background-color var(--transicion-base);
}

.torneo-item:hover{
    border-color: var(--color-dorado);
    background: var(--superficie-2);
    box-shadow: var(--sombra-brillo-sm);
}

.torneo-nombre{
    color: var(--texto-primario);
    font-weight: bold;
    font-size: 15px;
}

.torneo-detalle{
    color: var(--texto-terciario);
    font-size: 13px;
    margin-top: 3px;
}

.torneo-item-acciones{
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.torneo-item-acciones::-webkit-scrollbar{
    height: 4px;
}

.torneo-item-acciones::-webkit-scrollbar-thumb{
    background: rgba(255, 215, 0, 0.4);
    border-radius: var(--radio-pill);
}

.torneo-estado-badge{
    flex-shrink: 0;
    font-family: var(--fuente-display);
    font-size: 9px;
    padding: 3px 8px;
    border-radius: var(--radio-pill);
    white-space: nowrap;
}

.torneo-estado-badge.estado-borrador{
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--texto-secundario);
}

.torneo-estado-badge.estado-inscripciones_abiertas{
    border: 1px solid var(--color-dorado);
    color: var(--color-dorado);
}

.torneo-estado-badge.estado-en_curso{
    background: var(--color-dorado-fuerte);
    color: var(--color-negro);
}

.torneo-estado-badge.estado-finalizado{
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--texto-terciario);
}

.torneo-estado-badge.estado-cancelado{
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.selector-estado-torneo{
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    background-color: transparent;
    padding-right: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 8px;
    transition: filter var(--transicion-rapida);
}

.selector-estado-torneo:hover,
.selector-estado-torneo:focus-visible{
    filter: brightness(1.15);
}

.selector-estado-torneo option{
    background-color: var(--color-negro);
    color: var(--color-blanco);
}

.enlace-editar-torneo{
    flex-shrink: 0;
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid var(--color-dorado);
    border-radius: var(--radio-pill);
    color: var(--color-dorado);
    font-size: 9px;
    font-family: var(--fuente-display);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--transicion-base), color var(--transicion-base);
}

.enlace-editar-torneo:hover,
.enlace-editar-torneo:focus-visible{
    background-color: var(--color-dorado-fuerte);
    color: var(--color-negro);
}

.boton-eliminar-torneo{
    flex-shrink: 0;
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radio-pill);
    border: 1px solid var(--color-error);
    background: transparent;
    color: var(--color-error);
    font-size: 9px;
    font-family: var(--fuente-display);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--transicion-base), color var(--transicion-base);
}

.boton-eliminar-torneo:hover,
.boton-eliminar-torneo:focus-visible{
    background-color: var(--color-error);
    color: var(--color-negro);
    transform: none;
}

.mensaje-vacio{
    color: var(--texto-terciario);
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}

/* ============================================================
   ESTADÍSTICAS — Botón + Dashboard modal
   ============================================================ */

.seccion-encabezado{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.seccion-encabezado h2{
    margin-bottom: 0;
}

.boton-ver-estadisticas{
    flex-shrink: 0;
    padding: 5px 14px;
    background: transparent;
    border: 1px solid var(--borde-dorado);
    color: var(--color-dorado);
    border-radius: var(--radio-pill);
    font-family: var(--fuente-display);
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transicion-base), box-shadow var(--transicion-base);
}

.boton-ver-estadisticas:hover,
.boton-ver-estadisticas:focus-visible{
    background: rgba(255, 215, 0, 0.1);
    box-shadow: var(--sombra-brillo-sm);
    transform: none;
}

/* MODAL DASHBOARD */
.modal-dashboard{
    align-items: flex-start;
    padding: 24px 16px;
    overflow-y: auto;
}

.dashboard-contenedor{
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: auto;
    background: #0a0a0a;
    border: 1px solid var(--borde-dorado);
    border-radius: var(--radio-lg);
    padding: 36px 32px 40px;
    box-shadow: var(--sombra-md), 0 0 50px rgba(255, 215, 0, 0.06);
}

.dashboard-cerrar{
    position: absolute;
    top: 14px;
    right: 18px;
    float: none;
    font-size: 26px;
    padding: 0 6px;
    background: transparent;
    color: var(--color-dorado);
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
    transition: color var(--transicion-base);
}

.dashboard-cerrar:hover,
.dashboard-cerrar:focus-visible{
    color: white;
    background: transparent;
    transform: none;
}

.dashboard-titulo{
    font-family: var(--fuente-display);
    color: var(--color-dorado);
    font-size: 18px;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

/* STAT TILES */
.dashboard-tiles{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.dash-tile{
    background: var(--superficie-1);
    border: 1px solid var(--borde-dorado);
    border-radius: var(--radio-sm);
    padding: 16px 10px;
    text-align: center;
}

.dash-tile-valor{
    font-family: var(--fuente-display);
    font-size: 28px;
    color: var(--color-dorado);
    line-height: 1;
}

.dash-tile-label{
    font-size: 10px;
    color: var(--texto-terciario);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CHARTS GRID */
.dashboard-graficas{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.chart-card{
    background: var(--superficie-1);
    border: 1px solid var(--borde-dorado-sutil);
    border-radius: var(--radio-md);
    padding: 18px 16px;
}

.chart-titulo{
    font-family: var(--fuente-display);
    font-size: 11px;
    color: var(--texto-terciario);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.chart-donut-wrap{
    display: flex;
    justify-content: center;
}

.chart-donut-wrap svg{
    width: 150px;
    height: 150px;
    max-width: 100%;
}

.chart-leyenda{
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.leyenda-item{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--texto-secundario);
}

.leyenda-dot{
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chart-barras-wrap svg{
    width: 100%;
    height: auto;
    overflow: visible;
}

@media (max-width: 760px){
    .dashboard-tiles{
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-graficas{
        grid-template-columns: 1fr;
    }

    .dashboard-contenedor{
        padding: 28px 16px 30px;
    }
}

@media (max-width: 480px){
    .modal-dashboard{
        padding: 12px 8px;
    }

    .dashboard-contenedor{
        padding: 24px 12px 26px;
        border-radius: var(--radio-md);
    }

    .dash-tile-valor{
        font-size: 22px;
    }
}

/* ============================================================
   PERFIL — nombre + botón editar
   ============================================================ */

.perfil-nombre-fila{
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.perfil-nombre-fila h1{
    margin: 0;
}

.boton-editar-perfil{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: rgba(255, 215, 0, 0.75);
    border-radius: var(--radio-pill);
    font-family: var(--fuente-display);
    font-size: 10px;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--transicion-base), color var(--transicion-base), background var(--transicion-base);
    -webkit-tap-highlight-color: transparent;
}

.boton-editar-perfil:hover,
.boton-editar-perfil:focus-visible{
    border-color: var(--color-dorado);
    color: var(--color-dorado);
    background: rgba(255, 215, 0, 0.07);
    outline: none;
}

/* Info extra (edad, sexo, ciudad) */
.perfil-info-extra{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 4px;
}

.perfil-info-chip{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--texto-secundario);
    background: var(--superficie-1);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radio-pill);
    padding: 3px 10px;
}

.perfil-info-chip svg{
    flex-shrink: 0;
    opacity: 0.6;
}

.perfil-bio{
    font-size: 13px;
    color: var(--texto-secundario);
    line-height: 1.55;
    margin: 4px 0 8px;
    max-width: 480px;
}

/* ============================================================
   MODAL EDITAR PERFIL
   ============================================================ */

.modal-editar-perfil{
    align-items: center;
}

.editar-perfil-contenedor{
    background: var(--superficie-1);
    border: 1px solid var(--borde-dorado);
    border-radius: var(--radio-lg);
    padding: 32px 36px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--sombra-md), var(--sombra-brillo-sm);
}

.editar-perfil-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.editar-perfil-header h2{
    font-family: var(--fuente-display);
    color: var(--color-dorado);
    font-size: 18px;
    margin: 0;
}

.editar-perfil-form{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ep-fila-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ep-campo{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ep-campo-full{
    grid-column: 1 / -1;
}

.ep-campo-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ep-campo-header > label:first-child{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--texto-terciario);
}

/* Toggle switch */
.ep-toggle{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.ep-toggle input[type="checkbox"]{
    display: none;
}

.ep-toggle-track{
    position: relative;
    width: 30px;
    height: 17px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    transition: background var(--transicion-base);
    flex-shrink: 0;
}

.ep-toggle-track::after{
    content: '';
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    top: 2px;
    left: 2px;
    transition: left var(--transicion-base), background var(--transicion-base);
}

.ep-toggle input:checked + .ep-toggle-track{
    background: rgba(255,215,0,0.55);
}

.ep-toggle input:checked + .ep-toggle-track::after{
    left: 15px;
    background: var(--color-dorado);
}

.ep-toggle-label{
    font-size: 10px;
    color: var(--texto-terciario);
    user-select: none;
}

/* Picker de fecha (3 selects) */
.ep-fecha-grupo{
    display: grid;
    grid-template-columns: 1fr 2fr 1.4fr;
    gap: 8px;
}

.ep-campo label{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--texto-terciario);
}

.ep-campo input,
.ep-campo select,
.ep-campo textarea{
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: var(--radio-sm);
    color: var(--texto-primario);
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    transition: border-color var(--transicion-base);
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    box-sizing: border-box;
}

.ep-campo input:focus,
.ep-campo select:focus,
.ep-campo textarea:focus{
    outline: none;
    border-color: var(--borde-dorado);
    background: rgba(255,215,0,0.04);
}

.ep-campo input::placeholder,
.ep-campo textarea::placeholder{
    color: var(--texto-terciario);
    opacity: 0.7;
}

.ep-campo select{
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,215,0,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    cursor: pointer;
}

.ep-campo select option{
    background: #111;
    color: var(--texto-primario);
}

.ep-campo textarea{
    resize: vertical;
    min-height: 80px;
}

.ep-contador{
    font-size: 11px;
    color: var(--texto-terciario);
    text-align: right;
    margin-top: 2px;
}

.ep-acciones{
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

.ep-btn-cancelar{
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--texto-secundario);
    font-family: var(--fuente-display);
    font-size: 11px;
    padding: 8px 20px;
    border-radius: var(--radio-sm);
    cursor: pointer;
    transition: border-color var(--transicion-base), color var(--transicion-base);
}

.ep-btn-cancelar:hover{
    border-color: rgba(255,255,255,0.35);
    color: var(--texto-primario);
}

.ep-btn-guardar{
    background: var(--color-dorado);
    border: none;
    color: var(--color-negro);
    font-family: var(--fuente-display);
    font-size: 11px;
    padding: 8px 24px;
    border-radius: var(--radio-sm);
    cursor: pointer;
    transition: opacity var(--transicion-base), box-shadow var(--transicion-base);
}

.ep-btn-guardar:hover:not(:disabled){
    opacity: 0.88;
    box-shadow: var(--sombra-brillo-sm);
}

.ep-btn-guardar:disabled{
    opacity: 0.5;
    cursor: default;
}

.femeteme-estado{
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: var(--radio-sm);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.femeteme-estado.buscando{
    background: rgba(255,255,255,0.06);
    color: var(--texto-secundario);
}
.femeteme-estado.confirmado{
    background: rgba(0,180,80,0.12);
    border: 1px solid rgba(0,180,80,0.3);
    color: #4cde8a;
}
.femeteme-estado.pregunta{
    background: rgba(255,215,0,0.08);
    border: 1px solid rgba(255,215,0,0.25);
    color: var(--texto-primario);
}
.femeteme-estado.error{
    background: rgba(220,50,50,0.1);
    border: 1px solid rgba(220,50,50,0.3);
    color: #f47;
}
.femeteme-nombre{
    flex: 1;
    font-weight: 600;
}
.femeteme-acciones{
    display: flex;
    gap: 8px;
}
.femeteme-btn{
    padding: 5px 14px;
    border-radius: var(--radio-sm);
    font-family: var(--fuente-display);
    font-size: 11px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.femeteme-btn-si{
    background: var(--color-dorado);
    color: var(--color-negro);
}
.femeteme-btn-no{
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--texto-secundario);
}
.femeteme-btn:hover{ opacity: 0.8; }

@media (max-width: 560px){
    .editar-perfil-contenedor{
        padding: 24px 20px;
    }
    .ep-fila-2{
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PANEL ADMIN — EDITAR USUARIOS
   ============================================================ */
.admin-panel-seccion{
    margin-top: 24px;
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: var(--radio-base);
    padding: 24px;
    background: rgba(255,215,0,0.03);
}
.admin-lista-wrap{
    margin-top: 16px;
}
.admin-tabla-wrap{
    overflow-x: auto;
}
.admin-tabla{
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-tabla th{
    text-align: left;
    padding: 8px 12px;
    color: var(--color-dorado);
    font-family: var(--fuente-display);
    font-size: 11px;
    border-bottom: 1px solid rgba(255,215,0,0.2);
    white-space: nowrap;
}
.admin-tabla td{
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--texto-primario);
    vertical-align: middle;
}
.admin-tabla tr:hover td{
    background: rgba(255,255,255,0.03);
}
.admin-col-email{
    color: var(--texto-secundario);
    font-size: 12px;
}
.admin-badge{
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-family: var(--fuente-display);
}
.admin-badge-master{
    background: rgba(255,215,0,0.15);
    color: var(--color-dorado);
    border: 1px solid rgba(255,215,0,0.3);
}
.admin-badge-admin{
    background: rgba(100,160,255,0.12);
    color: #7ab0ff;
    border: 1px solid rgba(100,160,255,0.25);
}
.admin-badge-jugador{
    background: rgba(255,255,255,0.06);
    color: var(--texto-secundario);
    border: 1px solid rgba(255,255,255,0.1);
}
.admin-btn-editar{
    background: var(--color-dorado);
    color: var(--color-negro);
    border: none;
    border-radius: var(--radio-sm);
    padding: 5px 14px;
    font-family: var(--fuente-display);
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.admin-btn-editar:hover{ opacity: 0.85; }
.admin-cargando, .admin-vacio{
    color: var(--texto-secundario);
    font-size: 13px;
    text-align: center;
    padding: 16px 0;
}

/* ============================================================
   MODAL ADVERTENCIA FEMETEME
   ============================================================ */
.adv-femeteme-contenedor{
    background: var(--color-negro, #000);
    border: 1px solid rgba(255,215,0,0.35);
    border-radius: var(--radio-base);
    padding: 32px 28px;
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.adv-femeteme-titulo{
    font-family: var(--fuente-display);
    font-size: 18px;
    color: var(--color-dorado);
    margin: 0;
}
.adv-femeteme-texto{
    font-size: 14px;
    color: var(--texto-primario);
    line-height: 1.6;
    margin: 0;
}
.adv-femeteme-acciones{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}
.adv-btn-cancelar{
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--texto-secundario);
    font-family: var(--fuente-display);
    font-size: 12px;
    padding: 8px 20px;
    border-radius: var(--radio-sm);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.adv-btn-cancelar:hover{
    border-color: rgba(255,255,255,0.4);
    color: var(--texto-primario);
}
.adv-btn-aceptar{
    background: var(--color-dorado);
    color: var(--color-negro);
    border: none;
    font-family: var(--fuente-display);
    font-size: 12px;
    padding: 8px 20px;
    border-radius: var(--radio-sm);
    cursor: pointer;
    transition: opacity 0.2s;
}
.adv-btn-aceptar:hover{ opacity: 0.85; }

/* ============================================================
   FEMETEME — modos de búsqueda (Por ID / Por nombre)
   ============================================================ */

.femeteme-cabecera{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.femeteme-modos{
    display: flex;
    gap: 4px;
}

.femeteme-modo{
    background: transparent;
    border: 1px solid rgba(255,215,0,0.2);
    color: var(--texto-terciario);
    font-family: var(--fuente-display);
    font-size: 10px;
    padding: 3px 10px;
    border-radius: var(--radio-pill);
    cursor: pointer;
    transition: border-color var(--transicion-base), color var(--transicion-base), background var(--transicion-base);
}

.femeteme-modo.activo{
    border-color: var(--color-dorado);
    color: var(--color-dorado);
    background: rgba(255,215,0,0.07);
}

.femeteme-modo:hover:not(.activo){
    border-color: rgba(255,215,0,0.4);
    color: var(--texto-secundario);
}

.femeteme-resultados{
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    background: #111;
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: var(--radio-sm);
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,215,0,0.4) transparent;
}

.femeteme-resultado-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transicion-base);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.femeteme-resultado-item:last-child{
    border-bottom: none;
}

.femeteme-resultado-item:hover{
    background: rgba(255,215,0,0.06);
}

.femeteme-resultado-nombre{
    font-size: 13px;
    color: var(--texto-primario);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.femeteme-resultado-rank{
    flex-shrink: 0;
    font-family: var(--fuente-display);
    font-size: 12px;
    color: var(--color-dorado);
    opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 900px){
    .perfil-columnas{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px){
    .perfil{
        padding: 40px 6% 80px;
    }

    .perfil-portada{
        padding: 30px 20px;
        text-align: center;
    }

    .perfil-portada-contenido{
        justify-content: center;
        text-align: center;
    }

    .perfil-etiquetas{
        justify-content: center;
    }

    .torneo-item{
        flex-direction: column;
        align-items: flex-start;
    }

    .torneos-tabs{
        justify-content: center;
    }
}
